package com.wavehi.post;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;
import org.springframework.lang.Nullable;

/**
 * @Author WaveHi
 * @Date 16/10/2021 下午 8:47
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class PersonPost implements BeanPostProcessor {
    @Override
    public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("Before init!");
        return bean;
    }

    @Override
    public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
        System.out.println("After init!");
        return bean;
    }
}
